package com.woniuxy.joylifecenter.service;

import com.woniuxy.common.entity.ForumForum;

import java.util.*;

public interface ForumInitService {
    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/3
     * @Param [forumForum]
     * @Description 创建社区
     **/
    int forumInit(ForumForum forumForum);

    /**
     * @return com.woniuxy.common.entity.ForumForum
     * @Author ArmWatt
     * @Date 2020/5/3
     * @Param [forumForum]
     * @Description 已创建社区多条件模糊查询
     **/
    List<ForumForum> selectForumByCondition(ForumForum forumForum);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/4
     * @Param [id]
     * @Description 手动批量删除社区
     **/
    int batchDeleteForumManually(List<String> ids);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/4
     * @Param [id]
     * @Description 手动删除单个社区
     **/
    int deleteForumManually(String id);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/5
     * @Param [forumForum]
     * @Description 编辑社区记录
     **/
    int updateForum(ForumForum forumForum);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Author ArmWatt
     * @Date 2020/5/12
     * @Param []
     * @Description 查询所有待审批的社区管理员申请
     **/
    List<Map<String, Object>> queryAllForumAdminApply();

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/13
     * @Param [id]
     * @Description 审核不过
     **/
    int rejectForumAdminApply(String id);

    /**
    *@Author ArmWatt
    *@Date 2020/5/13
    *@Param [id, userid, forumid]
    *@return int
    *@Description 审核通过
    **/
    int passForumAdminApply(String id,String userid,String forumid);

    /**
     * @return int
     * @Author ArmWatt
     * @Date 2020/5/13
     * @Param [userid, forumid]
     * @Description 添加社区吧主关联记录
     **/
    int addForumAdmin(String userid, String forumid);

}
